#ifndef TCPCLIENT_H_INCLUDED
#define TCPCLIENT_H_INCLUDED

#include <string>

class TcpClient
{
 private:
	int			_sockFd;
	bool			_init;

	int	openConnection( char * ip, int port );
	int 	closeConnection(int socket);

 public:

	TcpClient(std::string ip, int port);
	~TcpClient();

	int	sendData( char * buffer, int bufferSize );
	int	receiveData( char * buffer, int bufferSize );
	bool	isInit() const;

};

#endif
